package di

import (
	"cooke-home/auth-service/controller"
	"cooke-home/auth-service/mapper"
	"cooke-home/auth-service/service"
	"cooke-home/common/handle"
)

var (
	UserController *controller.UserController
)

func InitDI() {
	handle.InitGorm()

	userMapper := mapper.NewUserMapperImpl()

	userService := service.NewUserServiceImpl(userMapper)

	UserController = controller.NewUserController(userService)
}
